home *** CD-ROM | disk | FTP | other *** search
- Path: news.crystalball.com!news
- From: Larry Weiss <lfw@oc.com>
- Newsgroups: comp.lang.c
- Subject: Re: Standard question - pointer initialization
- Date: Wed, 13 Mar 1996 16:13:51 -0600
- Organization: crystalball.com
- Message-ID: <3147489F.10E4@oc.com>
- References: <4hk9un$906@hammer.msfc.nasa.gov> <4hl6rr$nde@news.xs4all.nl> <313E6028.1C19@ix.netcom.com> <4hnpsl$g8c@hacgate2.hac.com> <4hq9hsINN998@keats.ugrad.cs.ubc.ca> <4i7cgn$5da@baygull.rtd.com> <4i7cve$5da@baygull.rtd.com>
- NNTP-Posting-Host: external.oc.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win16; I)
-
- Ronald Collins wrote:
- >
- > To follow-up on my own post ... the standard requires a zero to be
- > used as NULL _only_ when the literal "0" is used. A variable set to
- > 0 (as in "int var = 0;") then cast to a pointer (as in "*p = (char *) var")
- > is _not_ required to convert to a NULL.
- >
- > If, above, you were talking about a literal "0", then I withdraw my comments.
- > If you were talking of any numeric 0 value casting to a NULL, then my
- > comments stand.
-
- I think of 0 in this context as no more, and no less than an alternative
- spelling for NULL.
-